package com.itheima.pojo;

public class Userinfo {
            private int id;
            private double height;
            private double weight;
            private boolean married;

    public Userinfo() {
    }

    public Userinfo(int id, double height, double weight, boolean married) {
        this.id = id;
        this.height = height;
        this.weight = weight;
        this.married = married;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return height
     */
    public double getHeight() {
        return height;
    }

    /**
     * 设置
     * @param height
     */
    public void setHeight(double height) {
        this.height = height;
    }

    /**
     * 获取
     * @return weight
     */
    public double getWeight() {
        return weight;
    }

    /**
     * 设置
     * @param weight
     */
    public void setWeight(double weight) {
        this.weight = weight;
    }

    /**
     * 获取
     * @return married
     */
    public boolean isMarried() {
        return married;
    }

    /**
     * 设置
     * @param married
     */
    public void setMarried(boolean married) {
        this.married = married;
    }

    public String toString() {
        return "Userinfo{id = " + id + ", height = " + height + ", weight = " + weight + ", married = " + married + "}";
    }
}
